/*
 * @Description:
 * @Version: 1.0
 * @Author: yxx
 * @Date: 2023-09-21 15:00:11
 * @LastEditors: yxx
 * @LastEditTime: 2025-05-14 10:09:42
 */
import cryptoJs from "crypto-js"

export const encryptDes = (message: string) => {
  let keyHex = cryptoJs.enc.Utf8.parse("764b980b-3327-6dc7-aee9-c7fd50ee6biz")
  let option = { mode: cryptoJs.mode.ECB, padding: cryptoJs.pad.Pkcs7 }
  let encrypted = cryptoJs.DES.encrypt(message, keyHex, option)
  return encrypted.toString()
}
